<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Factory_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_id" data-rule="required" data-source="factory/index" class="form-control selectpage" name="row[factory_id]" type="text" value="{$row.factory_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Storesub_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-storesub_id" data-source="storesub/index" class="form-control selectpage" name="row[storesub_id]" type="text" value="{$row.storesub_id|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Store1_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-store1_id" data-source="store1/index" class="form-control selectpage" name="row[store1_id]" type="text" value="{$row.store1_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Storem1_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-storem1_id" data-source="storem1/index" class="form-control selectpage" name="row[storem1_id]" type="text" value="{$row.storem1_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Storea_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-storea_id" data-rule="required" data-source="storea/index" class="form-control selectpage" name="row[storea_id]" type="text" value="{$row.storea_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Field2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field2" data-source="pinxi/index" data-field="merge_name" data-format-item="{merge_name}"  class="form-control selectpage" name="row[field2]" type="text" value="{$row.field2|htmlentities}" >

        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Group_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-group_id" min="0" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value="{$row.group_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Batch_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-batch_id" data-source="batch/index" class="form-control selectpage" name="row[batch_id]" type="text" value="{$row.batch_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group ghide">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cal" class="form-control" name="row[cal]" type="text" value="{$row.cal|htmlentities}" >
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-num" class="form-control" name="row[num]" type="number" value="{$row.num|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cal_num" class="form-control" name="row[cal_num]" type="number" value="{$row.cal_num|htmlentities}">
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Field1')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-field1" class="form-control" name="row[field1]" type="text" value="{$row.field1|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-stock" class="form-control" name="row[stock]" type="number" value="{$row.stock|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('单价')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('总价')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cal_total" class="form-control" step="0.01" name="row[cal_total]" type="number" value="{$row.cal_total|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Total')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-total" class="form-control" step="0.01" name="row[total]" type="number" value="{$row.total|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group ghide">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('From_factory_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-from_factory_id" data-source="factory/index" class="form-control selectpage" name="row[from_factory_id]" type="text" value="{$row.from_factory_id|htmlentities}">-->
<!--        </div>-->
<!--        <div class="c-help">非必填</div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('From_storea_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-from_storea_id" data-source="storea/index" class="form-control selectpage" name="row[from_storea_id]" type="text" value="{$row.from_storea_id|htmlentities}">-->
<!--        </div>-->
<!--        <div class="c-help">非必填</div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('To_factory_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-to_factory_id" data-source="factory/index" class="form-control selectpage" name="row[to_factory_id]" type="text" value="{$row.to_factory_id|htmlentities}">-->
<!--        </div>-->
<!--        <div class="c-help">非必填</div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('To_storea_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-to_storea_id" data-source="storea/index" class="form-control selectpage" name="row[to_storea_id]" type="text" value="{$row.to_storea_id|htmlentities}">-->
<!--        </div>-->
<!--        <div class="c-help">非必填</div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
